import request from "@/utils/request.js";
// 提现分页
export const pagingApi = (data) => {
	let option = {
		method: "POST",
		loading: true,
	};
	return request('api/sale/withdrawal/paging', data, option)
}
// 提现账户统计
export const countApi = (data) => {
	let option = {
		method: "GET",
		loading: true,
	};
	return request('api/sale/account', data, option)
}
// 提现次数统计
export const timesApi = (data) => {
	let option = {
		method: "GET",
		loading: true,
	};
	return request('api/sale/withdrawal/current/day/amount/count', data, option)
}
// 发起提现申请
export const withdrawalAddApi = (data, failHandle) => {
	let option = {
		method: "POST",
		loading: true,
		failHandle: failHandle
	};
	return request('api/sale/withdrawal', data, option)
}
// 提现详情
export const withdrawalDetailApi = (id) => {
	let option = {
		method: "GET",
		loading: true,
	};
	return request('api/sale/withdrawal/' + id, {}, option)
}
